package com.numberone.master.modules.card.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.numberone.master.common.persistence.CrudDao;
import com.numberone.master.common.persistence.annotation.MyBatisDao;
import com.numberone.master.modules.card.entity.Card;

/**
 * 物联网卡DAO接口
 * @author chegkang
 * @version 2018-02-01
 */
@MyBatisDao
public interface CardDao extends CrudDao<Card> {
	
	List<Card> findCardList(Card card);
	
	List<Card> findAgainList(Card card);
	
	void distribution(@Param("id")String id,@Param("officeId")String officeId);
	
	void updateThreshold(Card card);
	
	void updateSetUser(Card card);
	
	Card getCardByCCID(@Param("iccid")String iccid,@Param("id")String id);
	
	Card getCardInfoByCCID(@Param("iccid")String iccid);
	
	int getCardByIds(@Param("ids")String ids,@Param("pkg")String pkg);
	
}